package com.le.tester.imooc.oldfairy.coding.annotation;

/**
 * createTime：2023/5/19 10:44
 * description：
 */
@Aspect(type = TimeUsageAspect.class)
public class Order implements IOrder {

    int state = 0;

    @Override
    public void pay() throws InterruptedException {
        Thread.sleep(50);
        this.state = 1;
    }

    @Override
    public void show() {
        System.out.println("order status:" + this.state);
    }
}
